import request  from '@/utils/request.js'
export function listBrand(query){
    return request({
        url: '/product/brand/list',
        params:query,
        method:'GET'
        }
    )

}
export function saveBrand(brand){
    return request({
            url: `/product/brand/save`,
            params:brand,
            method:'PUT'
        }
    )}
export function updateBrand(brand){
    return request({
            url: `/product/brand/update`,
            data:brand,
            method:'PUT'
        }
    )}
export function getBrandDetails(id){
    return request({
            url: `/product/brand/${id}`,
            method:'GET'
        }
    )}
export function deleteBrand(ids){
    return request({
            url: `/product/brand/${ids}`,
            method:'DELETE'
        }
    )}
